package com.example.managesystem.vo;

import com.example.managesystem.constant.MessageConstant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class MidItermsVO implements Serializable {
    List<MidItermVO> midItermVOS=new ArrayList<>();
    public void add(MidItermVO item) {

        if (item != null) {
            this.midItermVOS.add(item);
        } else {
            throw new IllegalArgumentException(MessageConstant.ITEM_CANNOT_BE_NULL);
        }

    }
    List<FileVO> files=new ArrayList<>();
}
